﻿
Partial Class Apps_report_master_department
    Inherits System.Web.UI.Page

    Protected Sub btnFilter_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnFilter.Click

        Try

            Dim url = "../Reports/report_master_department2.aspx?master_department_status={0}&str_master_department_status={1}"
            url = String.Format(url, _
                                ddlStatus.SelectedValue, _
                                HttpUtility.UrlEncode(ddlStatus.SelectedItem.Text))

            Dim script = String.Format(" window.open('{0}','_blank');", url)
            ScriptManager.RegisterStartupScript(Me, _
                                                Me.GetType(), _
                                                Guid.NewGuid().ToString() _
                                                , _
                                                script _
                                                , _
                                                True)
        Catch ex As Exception
            GenericHelper.ShowAlert(Me, ex.Message)
        End Try

    End Sub

    Protected Sub Page_LoadComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadComplete
        Dim BreadCrumpBG As HtmlControl = Page.Master.FindControl("tdBreadCrump")
        Dim BreadCrump As Literal = Page.Master.FindControl("ltrBreadCrump")
        CodeMatrix.Business.GenericData.SetBreadCrump(BreadCrumpBG, BreadCrump, 50)
    End Sub
End Class
